package com.simp.config.task;

import lombok.extern.slf4j.Slf4j;


/**
 * @author pan.shun
 * @since 2022/6/8 11:22
 */
@Slf4j
public class ScheduleTask extends ScheduleWork implements Runnable {

    private TaskDefinition taskVo;

    public ScheduleTask(TaskDefinition taskVo) {
        this.taskVo = taskVo;
    }

    @Override
    public void run() {
        doScheduleWork(taskVo);
    }
}
